import request from '@/utils/request';

/**
 * 人员表
 *
 * @author cs
 * @email 1299492720@qq.com
 * @date 2023-09-11 15:21:11
 */
export function usePersonApi() {
    return {
        list: (params) => {
            return request({
                url: '/person/person/list',
                method: 'get',
                params
            });
        },
        add: (params) => {
            return request({
                url: '/person/person/save',
                method: 'post',
                data: params
            });
        },
        update: (params) => {
            return request({
                url: '/person/person/update',
                method: 'post',
                data: params
            });
        },
        delete: (params) => {
            return request({
                url: '/person/person/delete',
                method: 'delete',
                data: params
            });
        },
        generateQrCode: (params) => {
            return request({
                url: '/person/person/generateQrCode',
                method: 'post',
                data: params
            });
        }
    };
}
